package cn.datax.service.data.market.table.entity;

import cn.datax.common.base.DataScopeBaseEntity;
import cn.datax.service.data.market.table.dto.ExecuteConfig;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据API信息表
 * </p>
 *
 * @author yuwei
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "market_table", autoResultMap = true)
public class DataTableEntity extends DataScopeBaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * API名称
     */
    private String dataResourceName;

    /**
     * API版本
     */
    private String dataResourceVersion;


    /**
     * 执行配置
     */
    @TableField(value = "config_json", typeHandler = JacksonTypeHandler.class)
    private ExecuteConfig executeConfig;
    /**
     * 工作流状态（1待提交，2已退回，3审核中，4通过，5不通过，6已撤销）
     */
    @TableField(value = "flow_status", fill = FieldFill.INSERT)
    private String flowStatus;

    /**
     * 流程实例ID
     */
    @TableField(value = "process_instance_id")
    private String processInstanceId;
}
